<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/struts-dojo-tags" prefix="sx"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>个人书签</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="/Bookmark/css/style.css" />
		<sx:head />
	</head>

	<body>
		<div id="header">
			<div>
				<a href="javascript:void(0)" class="logo"><img src="/Bookmark/images/logo.gif"
						alt="" width="192" height="42" /> </a>
				<div class="inner_copy">
					<a href="javascript:void(0)">web directories</a>
				</div>
				<div class="search">
					<s:form action="searchBookmarkAction.action">
						<s:textfield name="query" value="%{query}" cssClass="search_field"></s:textfield>
						<s:submit cssClass="search_button" value=""></s:submit>
					</s:form>
				</div>
			</div>
		</div>
		<div id="content">
			<ul class="menu">
				<li class="unactive">
					<a href="/Bookmark/userBasedRecommendAction.action">推荐书签</a>
				</li>
				<li class="active">
					<a href="/Bookmark/pageUserBookmarkAction.action">个人书签</a>
				</li>
				<li class="unactive">
					<a href="/Bookmark/login/addBookmark.jsp">添加书签</a>
				</li>
				<li class="unactive">
					<a href="/Bookmark/searchBookmarkAction.action">搜索结果</a>
				</li>
				<li class="unactive">
					<a href="/Bookmark/toEditUserInfoAction.action">个人信息</a>
				</li>
				<li class="unactive">
					<a href="/Bookmark/logoutAction.action">注销</a>
				</li>
			</ul>
			<div class="column">
				<img src="/Bookmark/images/top.gif" alt="" width="231" height="5" />
				<br />
				<div class="inner_copy">
					<a href="http://www.cssmoban.com/">free templates</a><a
						href="http://www.bannermoz.com/">banner templates</a>
				</div>
				<div>
					<img src="/Bookmark/images/title2.gif" alt="" width="209"
						height="30" />
					<br />
					<p>
						<a href="http://cang.baidu.com/">百度搜藏</a> 百度搜藏是免费的网络收藏夹。帮您高效地收藏、整理网络资源，无论您到哪里，都可以随时随地浏览、搜索和使用。

						<span>cang.baidu.com</span>
					</p>
					<p>
						<a href="http://shuqian.qq.com/">QQ收藏夹</a> QQ书签是腾讯公司推出的免费网址收藏夹，可以帮助您收藏自己喜欢的网页，让您能够随时随地的管理和使用，并和朋友分享，方便你收集和分享网络资源。
						<span>shuqian.qq.com</span>
					</p>
				</div>
				<img src="/Bookmark/images/bot.gif" alt="" width="231" height="5" />
				<br />
			</div>
			<div class="list">
				<h3>
					搜索结果
				</h3>
				<s:if test="pageInfo.dataList.isEmpty()">
					<div style="text-align: center;">
						无记录
					</div>
				</s:if>
				<s:else>
					<s:iterator value="pageInfo.dataList">
						<p>
							<s:url action="dispatchAction.action" var="url">
								<s:param name="bookmarkId">
									<s:property value="bookmark.bookmarkId" />
								</s:param>
							</s:url>
							<s:a href="%{url}" target="_blank">
								<s:property value="bookmarkTitle" />
							</s:a>
							<s:property value="bookmarkDesc" />
							<span><s:property value="bookmarkUrl" /> &nbsp;&nbsp; <s:url
									action="deleteUserBookmarkAction.action" var="url">
									<s:param name="pageIndex">
										<s:property value="pageIndex" />
									</s:param>
									<s:param name="helpUserBookmarkId">
										<s:property value="userBookmarkId" />
									</s:param>
								</s:url> <s:a cssStyle="display:inline;" href="%{url}">删除</s:a>
								&nbsp;&nbsp; <s:url action="toEditUserBookmarkAction.action"
									var="url">
									<s:param name="pageIndex">
										<s:property value="pageIndex" />
									</s:param>
									<s:param name="helpUserBookmarkId">
										<s:property value="userBookmarkId" />
									</s:param>
								</s:url> <s:a cssStyle="display:inline;" href="%{url}">修改</s:a> </span>
							<span> <s:url action="contentRecommendAction.action"
									var="url">
									<s:param name="bookmarkId">
										<s:property value="bookmark.bookmarkId" />
									</s:param>
								</s:url> <sx:a cssStyle="display:inline;" href="%{url}"
									targets="%{bookmark.bookmarkId}">内容相似</sx:a> &nbsp;&nbsp;&nbsp;
								<s:url action="bookmarkRecommendAction.action" var="url">
									<s:param name="bookmarkId">
										<s:property value="bookmark.bookmarkId" />
									</s:param>
								</s:url> <sx:a cssStyle="display:inline;" href="%{url}"
									targets="%{bookmark.bookmarkId}">项目相似</sx:a> </span>
						</p>
						<p id="<s:property value='bookmark.bookmarkId' />"></p>
					</s:iterator>
				</s:else>
				<div class="pages">
					<s:url action="pageUserBookmarkAction.action" var="url">
						<s:param name="pageIndex" value="pageIndex-1"></s:param>
					</s:url>
					<s:a href="%{url}" cssClass="float">Previous</s:a>
					<div>
						<s:iterator begin="1" end="%{pageInfo.pageNum}" var="i">
							<s:if test="pageIndex==i">
								<strong><s:property value="i" /> </strong>
							</s:if>
							<s:else>
								<s:url action="pageUserBookmarkAction.action" var="url">
									<s:param name="pageIndex" value="%{#i}"></s:param>
								</s:url>
								<s:a href="%{url}">
									<s:property value="#i" />
								</s:a>
							</s:else>
						</s:iterator>
					</div>
					<s:url action="pageUserBookmarkAction.action" var="url">
						<s:param name="pageIndex" value="pageIndex+1"></s:param>
					</s:url>
					<s:a href="%{url}" cssClass="float">Next</s:a>
				</div>
			</div>
		</div>
		<div id="footer">
			<div>
				<ul>
					<li>
						<a href="index.jsp">Home</a> |
					</li>
					<li>
						<a href="index2.html">About us</a> |
					</li>
					<li>
						<a href="index2.html">Submit</a> |
					</li>
					<li>
						<a href="index2.html">Popular</a> |
					</li>
					<li>
						<a href="index2.html">Latest</a> |
					</li>
					<li>
						<a href="index2.html">Contacts</a>
					</li>
				</ul>
			</div>
			<span>Copyright &copy; yeq. All rights reserved.</span>
			<div class="inner_copy">
				
			</div>
		</div>
	</body>
</html>
